Preservation of port control block information related to logins and states of remote ports during a code load in an embedded port

ABSTRACT

Information maintained in a port control block of an embedded port of a host bus adapter is stored in a host bus adapter memory, wherein the information corresponds to login attributes and state data of remote ports. In response to storing the information in the host bus adapter memory, code in the embedded port is updated. In response to the updating of the code in the embedded port, the stored information is restored from the host bus adapter memory to the port control block of the embedded port.

BACKGROUND

1. Field

Embodiments relate to the preservation of port control block informationrelated to login and states of remote ports during a code load in anembedded port.

2. Background

A storage controller may control access to storage for one or more hostcomputational devices that may be coupled to the storage controller overa network. A storage management application that executes in the storagecontroller may manage a plurality of storage devices, such as diskdrives, tape drives, flash drives, etc., that are coupled to the storagecontroller. A host may send Input/Output (abbreviated as I/O or JO)commands to the storage controller and the storage controller mayexecute the I/O commands to read data from the storage devices or writedata to the storage devices.

A host bus adapter (HBA) may comprise a circuit board and/or integratedcircuit based adapter that may include components such as a FibreChannel interface chip, where the Fibre Channel interface chip may bereferred to as an embedded port. The host bus adapter may provide I/Oprocessing and provide physical connectivity for the storage controllerto a storage area network (SAN), where the storage area network includesa Fibre Channel switched fabric. The storage controller (via the hostbus adapter) may act as a target that receives I/O commands from the oneor more host computational devices, where the one or more hostcomputational devices act as initiators of the I/O commands.

Communication between the hosts and the storage controller may occurover a Fibre Channel (FC) network, where Fibre Channel refers to anintegrated set of architectural standards for data transfer beingdeveloped by the American National Standards Institute. Fibre Channel isa high-speed network technology primarily used for storage areanetworks. Fibre Channel Protocol (FCP) is a transport protocol thatpredominantly supports transports commands over Fibre Channel networks.

Fibre Channel may be split into five layers: a Protocol-mapping layer(FC-4), a common service layer (FC-3), a network layer (FC-2), a datalink layer (FC-1), and a FC-0 layer that defines the physical link inthe system, including the fibre, connectors, optical and electricalparameters for a variety of data rates. Layers FC-0 through FC-2 arealso known as FC-PH, the physical layers of Fibre Channel, whereas FC-3and FC-4 layers define how Fibre Channel ports interact withapplications in computational devices. The FC-3 layer of the FC standardis intended to provide the common services for features such asstriping, multicasting, etc.

FC-4, the highest layer in Fibre Channel, defines the applicationinterfaces that execute over Fibre Channel. FC-4 specifies the mappingrules of upper layer protocols using the FC layers below. FC-4 is formedby a series of profiles that define how to map legacy protocols to FibreChannel. Fibre Channel is capable of transporting both network andchannel information, and profiles for network and channel protocols,such as, Small Computer System Interface (SCSI), Intelligent PeripheralInterface (IPI), High Performance Parallel Interface (HIPPI) FramingProtocol, Internet Protocol (IP), Link Encapsulation (FC-LE),Single-Byte Command Code Set Mapping (SBCCS), etc., may be specified orproposed as protocol mappings in FC-4.

Fibre Connection (FICON) is a protocol of the fibre channel architectureand may also be referred to by the formal name of FC-SB-5. FICON is aprotocol layer that builds upon the Fibre Channel transport protocol.Further details of Fibre Channel protocol mapping for the Single-ByteCommand Code Sets may be found in the publication, “Fibre ChannelSingle-Byte Command Code Sets Mapping Protocol-5 (FC-SB-5)”, Rev. 2.0,published by the American National Standards Institute on Mar. 26, 2013.

The basic building blocks of a Fibre Channel connection are called“Frames”. The frames contain the information to be transmitted(Payload), the address of the source (i.e., initiator) and destination(i.e., target) ports and link control information. Frames are broadlycategorized as data frames and link control frames. Details of framingand signaling aspects of Fibre Channel may be found in the publication,“Fibre Channel Framing and Signaling-4 (FC-FS-4)”, Rev. 1.20, publishedby the American National Standard for Information Technology on Jul. 21,2015. Details of link services aspects of Fibre Channel may be found inthe publication, “Fibre Channel Link Services (FC-LS-3)”, Rev. 3.10,published by the American National Standard for Information Technologyon Feb. 1, 2014. The Fibre Channel Protocol for SCSI Fourth Version(FCP-4) standard describes the frame format and protocol definitionsrequired to transfer commands and data between a SCSI (Small ComputerSystem Interface) initiator and target using the Fibre Channel family ofstandards. Further details of FCP-4 may be found in the publication,“Information Technology—Fiber Channel Protocol for SCSI, Fourth Version(FCP-4), Revision 02b” published by the International Committee forInformation Technology Standards, on Jan. 3, 2011.

The storage controller may include a plurality of host bus adapters,where each host bus adapter may include a Fibre Channel Interface chipthat is an interface to switches that allow communication over a FibreChannel network between the storage controller and the plurality ofhosts.

Fibre Channel storage area networks may use the Fibre Channel protocol(used by the hardware to communicate), the SCSI protocol (used bysoftware applications to communicate to disks), and other protocols forcommunication. In Fibre channel, network connections are establishedbetween node ports (N_Ports) that are there in computers, servers,storage controllers, storage devices, printers, etc., and fabric ports(F_Ports) that are there in the Fibre channel switched fabric. A FibreChannel switched fabric relies on one or more switches to establishdirect, point-to-point connections between the source and targetdevices. Each Fibre Channel interface chip in the host bus adapters ofthe storage controller comprises a port that allows communication of thestorage controller to the hosts over the Fibre Channel switched fabric.

Fibre Channel login takes place after a link is operational and thelogin may an extended link service protocol. Port login is a type ofFibre Channel login that is also known as PLOGI. Port login is used toestablish a session between two N_Ports (devices) and is necessarybefore any upper level (i.e., upper layer) commands or operations can beperformed. During the port login, two N_Ports (devices) swap serviceparameters and make themselves known to each other.

SUMMARY OF THE PREFERRED EMBODIMENTS

Provided are a method, a system, and a computer program product in whichinformation maintained in a port control block of an embedded port of ahost bus adapter is stored in a host bus adapter memory, wherein theinformation corresponds to login attributes and state data of remoteports. In response to storing the information in the host bus adaptermemory, code in the embedded port is updated. In response to theupdating of the code in the embedded port, the stored information isrestored from the host bus adapter memory to the port control block ofthe embedded port.

In additional embodiments, during the storing of the information fromthe port control block to the host bus adapter memory, the updating ofthe code in the embedded port, and the restoring of the storedinformation to the port control block, the remote ports remain logged into the embedded port.

In further embodiments, the embedded port is a Fibre Channel interfacechip that includes port firmware that supports lower level Fibre Channelprotocols to communicate over a Fibre Channel fabric, wherein the driverof the host bus adapter supports upper level Fibre Channel protocols.

In certain embodiments, input/output operations are quiesced at leastduring the updating of the code in the embedded port.

In further embodiments, the updating of the code updates the portfirmware.

In certain embodiments, the embedded port performs: receiving, a firstmessage from a driver of the host bus adapter to store the informationmaintained in the port control block of the embedded port in the hostbus adapter memory; receiving a second message from the driver of thehost bus adapter to update the code in the embedded port; and receivinga third message from the driver of the host bus adapter to restore thestored information from the host bus adapter memory to the port controlblock of the embedded port.

In additional embodiments, a driver of the host bus adapter performs:sending a first message to the embedded port to store the informationmaintained in the port control block of the embedded port in a host busadapter memory; sending a second message to the embedded port to updatethe code in the embedded port; and sending a third message to theembedded port to restore the stored information from the host busadapter memory to the port control block of the embedded port.

BRIEF DESCRIPTION OF THE DRAWINGS

Referring now to the drawings in which like reference numbers representcorresponding parts throughout:

FIG. 1 illustrates a block diagram of a computing environment comprisinga storage controller that includes one or more host adapters with one ormore Fibre Channel interface chips to couple the storage controller to aFibre Channel fabric to communicate with a plurality of hosts, inaccordance with certain embodiments;

FIG. 2 illustrates a first flowchart that show operations performed in ahost bus adapter that has an embedded port, to preserve a port controlblock during code updates in an embedded port, in accordance withcertain embodiments;

FIG. 3 illustrates a second flowchart that shows operations of a driverof the host bus adapter and an embedded port, to preserve a port controlblock during code updates in the embedded port, in accordance withcertain embodiments;

FIG. 4 illustrates a third flowchart that shows operations to preserve aport control block during code updates in an embedded port, inaccordance with certain embodiments;

FIG. 5 illustrates a block diagram of a cloud computing environment, inaccordance with certain embodiments;

FIG. 6 illustrates a block diagram of further details of the cloudcomputing environment of FIG. 5, in accordance with certain embodiments;and

FIG. 7 illustrates a block diagram of a computational system that showscertain elements that may be included in the storage controller, thehost bus adapter, the embedded port, and the host shown in FIG. 1, inaccordance with certain embodiments.

DETAILED DESCRIPTION

In the following description, reference is made to the accompanyingdrawings which form a part hereof and which illustrate severalembodiments. It is understood that other embodiments may be utilized andstructural and operational changes may be made.

When firmware is upgraded on an embedded port on a host bus adapter in astorage controller, the process may cause the Fibre Channel link todrop. However, remote hosts may need to stay logged into the storagecontroller. In a switched environment, there are some hosts, such asFICON channels, that attempt to use various mechanisms to recover thelink, and such mechanisms may lead to a loss of access for the remoteports, if neither the remote ports nor the embedded port send a newPLOGI (i.e., Port Login) command Certain embodiments provide mechanismsto restore log in information to the embedded ports without requiring aPLOGI to be sent. The embodiments do not require any changes to theFICON architecture.

In certain embodiments, after Input/Output (I/O) has been quiesced(i.e., suspended) and before the port firmware is upgraded, informationin the port control block database that includes login attributes andstate data for remote ports are saved into host bus adapter memory,where the port control block database in maintained in the embeddedport. After the firmware upgrade completes and the link comes back up,the saved information of the port control block database is restored tothe port control block database from the host adapter memory. As aresult, certain embodiments allow the remote ports to remain logged inwithout dropping logical paths and without requiring the remote ports tosend a PLOGI command, even if the firmware of the embedded port ischanged. The avoidance of new login operations may save a significantamount of time in Fibre Channel based communications.

Exemplary Embodiments

FIG. 1 illustrates a block diagram of a computing environment 100comprising a storage controller 102 that includes one or more hostadapters 104 with one or more Fibre Channel interface chips 106 tocouple the storage controller 102 to a Fibre Channel fabric 108, tocommunicate with a plurality of hosts 110, 112, in accordance withcertain embodiments.

The storage controller 102 that includes the host bus adapter 104 maycontrol storage devices (not shown), and receive I/O commands from thehosts 110, 112. The storage controller 102 and the hosts 110, 112 maycomprise any suitable computational device including those presentlyknown in the art, such as, a personal computer, a workstation, a server,a mainframe, a hand held computer, a palm top computer, a telephonydevice, a network appliance, a blade computer, a processing device, etc.In certain embodiments the storage controller 102 may be comprised ofone or more storage servers. A plurality of storage servers may provideredundancy because if one storage server undergoes a failure from whichrecovery is not possible, an alternate storage server may perform thefunctions of the storage server that failed. The storage controller 102and the hosts 110, 112 may be elements in any suitable network, such as,a storage area network, a wide area network, the Internet, an intranet.In certain embodiments, the storage controller 102 and the hosts 110,112 may be elements in a cloud computing environment.

In FIG. 1, the storage controller 102 may include one or more host busadapters 104 that operate as targets of I/O operations initiated by oneor more hosts 110, 112. The host bus adapter 104 does not have controlover the arrival of host I/O operations. In certain embodiments, eachhost bus adapter 104 may be in the form of an adapter card that isplugged into the Peripheral Component Interconnect Express (PCIe) slotof the storage controller 102.

The host bus adapter 104 may include a PCIe bus 114 to which a host busadapter processor 116, a host bus adapter memory 117, and the FibreChannel interface chip 106 are coupled. An ASIC 118 may reside in thehost bus adapter 104, where the ASIC 118 provides a memory controllerand PCIe bus connectivity.

The host bus processor 116 may be a single-core or a multi-coreprocessor. A driver 120 that supports upper level protocols e.g., FCP,FICON, FC-4 layer standards, etc., executes operations on the host busadapter processor 116. The host bus adapter memory 117 may comprise anysuitable memory known in the art such as a Random Access Memory (RAM), adynamic RAM (DRAM), flash memory, etc. The driver 120 communicates withthe Fibre Channel interface chip 106 by using an application programminginterface (API) 122. Various data structures, such as queues 124 aremaintained by the driver 120. In certain embodiments, the driver 120 maybe implemented in software, hardware, firmware or any combinationthereof.

The Fibre Channel Interface Chip 106 is also referred to as an embeddedport. The embedded port 106 includes a processor 126 and a port firmware128 that supports lower level protocols like those for framing,signaling, etc. In certain embodiments, functions of the port firmware128 may be implemented in software, hardware, firmware or anycombination thereof. Various data structures, such as queues 130 (e.g.,request queues) are maintained by the port firmware 128. The embeddedport 106 supports lower level protocols of Fibre Channel and the driver120 supports upper level protocols. The embedded port 106 that supportslower level protocols of Fibre Channel connects the host bus adapter 104to the Fibre Channel fabric 108.

The embedded port 106 includes a port control block database 129 that ismaintained by the port firmware 128. The port control block database 129stores login attributes and state data of remote ports 109 (in the FibreChannel Fabric 108) that may have logged in to the embedded port 106.

The hosts 110, 112 may send I/O commands to the storage controller 102over the Fibre Channel fabric 108. The embedded port 106 receives theFibre Channel frames corresponding to the request. The driver 120 whichsupports upper level protocols of Fibre Channel is in communication withthe embedded port 106. The driver 120 uses the embedded port 106 andcommunicates via the upper level protocols with the hosts 110, 112, andresponds to I/O commands via the embedded port 106.

Therefore, FIG. 1 illustrates certain embodiments in which a driver 120of a host bus adapter 104 in association with the port firmware 128 ofan embedded port 106 allows the host bus adapter 104 to process andrespond to I/O commands from one or more hosts 110, 112. In certainsituations the port firmware 128 may need to be updated without loggingout remote ports 109 that may have logged in to the embedded port 106 toperform I/O, and certain embodiments provide mechanisms to perform suchupdates of the port firmware 128.

FIG. 2 illustrates a first flowchart 200 that show operations performedin a host bus adapter 104 that has an embedded port 106, to preserve theinformation related to the login attributes and state data of remoteports stored in a port control block database 129 while code updates inthe embedded port 106 are occurring, in accordance with certainembodiments.

Control starts at block 202 in which a determination is made that theport firmware 128 has to be upgraded (i.e., updated or changed bychanging the code of the firmware 128). To perform such an upgrade ofthe firmware 128, I/O that is occurring between the remote ports 109 andthe embedded port 106 is quiesced (i.e., suspended) [at block 204].

Control proceeds to block 206 in which information stored in the portcontrol block database 129 of the embedded port 106 is saved into thehost bus adapter memory 117. The port control block database 129 storeslogin attributes and state data of the remote ports 109 that are incommunication with the embedded port 106 (as shown via reference numeral208). Therefore, at the conclusion of the operations of block 206, thelogin attributes and state data of the remote ports 109 that are incommunication with the embedded port 106 are saved in the host busadapter memory 117. In certain embodiments, the entirety of the portcontrol block database 129 may be saved in the host bus adapter memory117, whereas in other embodiments, information related to the loginattributes and state data of the remote ports 109 that are incommunication with the embedded port 106 are saved in the host busadapter memory 117 from the port control block database 129. As long asthe information related to the login attributes and state data of theremote ports 109 that are in communication with the embedded port 106are saved in the host bus adapter memory 117 it is adequate for certainembodiments.

From block 206 control proceeds to block 210 in which the port firmware128 of the embedded port 106 is upgraded. Once the port firmware 128 ofthe embedded port 106 is upgraded, the link of the embedded port 106 tothe Fibre Channel fabric 108 is operational (at block 212). Theinformation related to the login attributes and state data of the remoteports 109 that were in communication with the embedded port 106 are thenrestored (at block 214) to the port control block database 129 from thehost bus adapter memory 117.

Therefore, FIG. 2 illustrates certain embodiments in which remote ports109 in communication with the host bus adapter 104 remain logged inwithout dropping logical paths and without requiring the remote ports109 (that have previously logged in to the embedded port 106) to send aPLOGI (i.e., port login) to the embedded port 106. As a result,significant time is saved in the computing environment 100 in networkcommunications over Fibre Channel.

FIG. 3 illustrates a second flowchart 300 that shows operations of adriver 120 of the host bus adapter 104 and an embedded port 106, topreserve the information related to the login attributes and state dataof remote ports stored in a port control block database 129 while codeupdates in the embedded port 106 are occurring, in accordance withcertain embodiments. The driver operations 302 and the embedded portoperations 304 are shown to the left and right of the dashed line 306respectively.

Control starts at block 307 in which the driver 120 sends a message tothe port firmware 128 of the embedded port 106. The message requests theembedded port 106 to save information stored in the port control blockdatabase 129 for remote ports 109 that are logged in to the embeddedport 106, in the host bus adapter memory 117.

The port firmware 128 of the embedded port 106 receives (at block 308)the message to save the information stored in the port control blockdatabase 129 in the host bus adapter memory 117, and in response saves(at block 310) the information stored in the port control block database129 in the host bus adapter memory 117. Control proceeds to block 312,in which the port firmware 128 responds to the driver 120 thatinformation stored in the port control block database 129 has been savedin the host bus adapter memory 117.

The driver then sends (at block 314) a message to the embedded port 106to load new code (i.e., new port firmware) and reconfigure the embeddedport 106. The embedded port 106 receives (at block 316) the message toload new code and reconfigure the embedded port 106. In response, theembedded port 106 loads new code to update, upgrade, or otherwise changethe port firmware 128 and reconfigures the embedded port 106 (at block318).

From block 318 control proceeds to block 320, where in response to thereconfiguration of the embedded port 106, the Fibre Channel links to theFibre Channel fabric 108 come up, and then the port firmware 128 sends amessage to the driver 120.

The driver 120 receives (at block 322) the message indicating that linkshave come up. For each remote port 109 that was logged in to theembedded port 106 and had information stored in the port control blockdatabase 129 saved in the host bus adapter memory 117, the driver 120sends (at block 324) messages to the port firmware 128. The messagesrequest the port firmware 128 to restore the information in the portcontrol block database 129 for each of the remembered logged in ports,where the remembering is performed by saving the information related tothe login attributes and state data of the remote ports 109 in the hostbus adapter memory 117. It should be noted that when the port firmware128 is updated and the embedded port 106 reconfigured, the logininformation of the remote ports 109 is temporarily lost to the embeddedport 106, but after this temporary loss the login information of theremote ports 109 is restored from the host bus adapter memory 117.

From block 324 control proceeds to block 326, in which the port firmware128 receive the messages sent in block 324 from the driver 120, andrestores the information saved in the host bus adapter memory 117 to theport control block database 129.

Therefore, FIG. 3 illustrates certain embodiments in which theoperations of the driver 120 and the operations of the embedded port 106are shown separately. The operations shown in FIG. 3 allow thepreviously logged in remote ports 109 to continue communications withthe embedded port 106 without performing a new port login (PLOGI), eventhough the port firmware 128 has been changed.

FIG. 4 illustrates a third flowchart 400 that shows operations topreserve the information related to the login attributes and state dataof remote ports stored in a port control block database 129, while codeupdates in the embedded port 106 are occurring, in accordance withcertain embodiments.

Control starts at block 402, in which information maintained in a portcontrol block (e.g., port control block database 129) of an embeddedport 106 of a host bus adapter 104 is stored in a host bus adaptermemory 117, wherein the information corresponds to login attributes andstate data of the remote ports 109.

Control proceeds to block 404, in which in response to storing theinformation in the host bus adapter memory 117, code in the embeddedport 106 is updated (e.g., to upgrade or otherwise change the portfirmware 128). In response to the updating of the code in the embeddedport 106, the stored information is restored from the host bus adaptermemory 117 to the port control block 129 of the embedded port 106.

FIG. 4 also shows (in block 408) that during the storing of theinformation from the port control block 129 to the host bus adaptermemory 117, during the updating of the code in the embedded port 106,and during the restoring of the stored information to the port controlblock 129, the remote ports 109 appear to remain logged in to theembedded port 106.

Therefore, FIGS. 1-4 illustrate certain embodiments in which remoteports 109 that have previously logged on to the embedded port 106 do nothave to perform a new login even if the firmware 128 of the embeddedport 106 is changed. The avoidance of new login operations may save asignificant amount of time in Fibre Channel based communications in thecomputing environment 100.

Cloud Computing Environment

Cloud computing is a model for enabling convenient, on-demand networkaccess to a shared pool of configurable computing resources (e.g.,networks, servers, storage, applications, and services) that can berapidly provisioned and released with minimal management effort orservice provider interaction.

Referring now to FIG. 5, an illustrative cloud computing environment 50is depicted. As shown, cloud computing environment 50 comprises one ormore cloud computing nodes 10 with which local computing devices used bycloud consumers, such as, for example, personal digital assistant (PDA)or cellular telephone 54A, desktop computer 54B, laptop computer 54C,and/or automobile computer system 54N may communicate. Nodes 10 maycommunicate with one another. They may be grouped (not shown) physicallyor virtually, in one or more networks, such as Private, Community,Public, or Hybrid clouds as described hereinabove, or a combinationthereof. This allows cloud computing environment 50 to offerinfrastructure, platforms and/or software as services for which a cloudconsumer does not need to maintain resources on a local computingdevice. It is understood that the types of computing devices 54A-N shownin FIG. 5 are intended to be illustrative only and that computing nodes10 and cloud computing environment 50 can communicate with any type ofcomputerized device over any type of network and/or network addressableconnection (e.g., using a web browser).

Referring now to FIG. 6, a set of functional abstraction layers providedby cloud computing environment 50 (FIG. 5) is shown. It should beunderstood in advance that the components, layers, and functions shownin FIG. 6 are intended to be illustrative only and embodiments of theinvention are not limited thereto.

Hardware and software layer 60 includes hardware and softwarecomponents. Examples of hardware components include mainframes, in oneexample IBM zSeries* systems; RISC (Reduced Instruction Set Computer)architecture based servers, in one example IBM pSeries* systems; IBMxSeries* systems; IBM BladeCenter* systems; storage devices; networksand networking components. Examples of software components includenetwork application server software, in one example IBM WebSphere*application server software; and database software, in one example IBMDB2* database software. * IBM, zSeries, pSeries, xSeries, BladeCenter,WebSphere, and DB2 are trademarks of International Business MachinesCorporation registered in many jurisdictions worldwide.

Virtualization layer 62 provides an abstraction layer from which thefollowing examples of virtual entities may be provided: virtual servers;virtual storage; virtual networks, including virtual private networks;virtual applications and operating systems; and virtual clients.

In one example, management layer 64 may provide the functions describedbelow. Resource provisioning provides dynamic procurement of computingresources and other resources that are utilized to perform tasks withinthe cloud computing environment. Metering and Pricing provide costtracking as resources are utilized within the cloud computingenvironment, and billing or invoicing for consumption of theseresources. In one example, these resources may comprise applicationsoftware licenses. Security provides identity verification for cloudconsumers and tasks, as well as protection for data and other resources.User portal provides access to the cloud computing environment forconsumers and system administrators. Service level management providescloud computing resource allocation and management such that requiredservice levels are met. Service Level Agreement (SLA) planning andfulfillment provide pre-arrangement for, and procurement of, cloudcomputing resources for which a future requirement is anticipated inaccordance with an SLA.

Workloads layer 66 provides examples of functionality for which thecloud computing environment may be utilized. Examples of workloads andfunctions which may be provided from this layer include: mapping andnavigation; software development and lifecycle management; virtualclassroom education delivery; data analytics processing; transactionprocessing; and the port firmware update processing 68 as shown in FIGS.1-5

Additional Embodiment Details

The described operations may be implemented as a method, apparatus orcomputer program product using standard programming and/or engineeringtechniques to produce software, firmware, hardware, or any combinationthereof. Accordingly, aspects of the embodiments may take the form of anentirely hardware embodiment, an entirely software embodiment (includingfirmware, resident software, micro-code, etc.) or an embodimentcombining software and hardware aspects that may all generally bereferred to herein as a “circuit,” “module” or “system.” Furthermore,aspects of the embodiments may take the form of a computer programproduct. The computer program product may include a computer readablestorage medium (or media) having computer readable program instructionsthereon for causing a processor to carry out aspects of the presentembodiments.

The computer readable storage medium can be a tangible device that canretain and store instructions for use by an instruction executiondevice. The computer readable storage medium may be, for example, but isnot limited to, an electronic storage device, a magnetic storage device,an optical storage device, an electromagnetic storage device, asemiconductor storage device, or any suitable combination of theforegoing. A non-exhaustive list of more specific examples of thecomputer readable storage medium includes the following: a portablecomputer diskette, a hard disk, a random access memory (RAM), aread-only memory (ROM), an erasable programmable read-only memory (EPROMor Flash memory), a static random access memory (SRAM), a portablecompact disc read-only memory (CD-ROM), a digital versatile disk (DVD),a memory stick, a floppy disk, a mechanically encoded device such aspunch-cards or raised structures in a groove having instructionsrecorded thereon, and any suitable combination of the foregoing. Acomputer readable storage medium, as used herein, is not to be construedas being transitory signals per se, such as radio waves or other freelypropagating electromagnetic waves, electromagnetic waves propagatingthrough a waveguide or other transmission media (e.g., light pulsespassing through a fiber-optic cable), or electrical signals transmittedthrough a wire.

Computer readable program instructions described herein can bedownloaded to respective computing/processing devices from a computerreadable storage medium or to an external computer or external storagedevice via a network, for example, the Internet, a local area network, awide area network and/or a wireless network. The network may comprisecopper transmission cables, optical transmission fibers, wirelesstransmission, routers, firewalls, switches, gateway computers and/oredge servers. A network adapter card or network interface in eachcomputing/processing device receives computer readable programinstructions from the network and forwards the computer readable programinstructions for storage in a computer readable storage medium withinthe respective computing/processing device.

Computer readable program instructions for carrying out operations ofthe present embodiments may be assembler instructions,instruction-set-architecture (ISA) instructions, machine instructions,machine dependent instructions, microcode, firmware instructions,state-setting data, or either source code or object code written in anycombination of one or more programming languages, including an objectoriented programming language such as Smalltalk, C++ or the like, andconventional procedural programming languages, such as the “C”programming language or similar programming languages. The computerreadable program instructions may execute entirely on the user'scomputer, partly on the user's computer, as a stand-alone softwarepackage, partly on the user's computer and partly on a remote computeror entirely on the remote computer or server. In the latter scenario,the remote computer may be connected to the user's computer through anytype of network, including a local area network (LAN) or a wide areanetwork (WAN), or the connection may be made to an external computer(for example, through the Internet using an Internet Service Provider).In some embodiments, electronic circuitry including, for example,programmable logic circuitry, field-programmable gate arrays (FPGA), orprogrammable logic arrays (PLA) may execute the computer readableprogram instructions by utilizing state information of the computerreadable program instructions to personalize the electronic circuitry,in order to perform aspects of the present embodiments.

Aspects of the present embodiments are described herein with referenceto flowchart illustrations and/or block diagrams of methods, apparatus(systems), and computer program products according to embodiments of theinvention. It will be understood that each block of the flowchartillustrations and/or block diagrams, and combinations of blocks in theflowchart illustrations and/or block diagrams, can be implemented bycomputer readable program instructions.

These computer readable program instructions may be provided to aprocessor of a general purpose computer, special purpose computer, orother programmable data processing apparatus to produce a machine, suchthat the instructions, which execute via the processor of the computeror other programmable data processing apparatus, create means forimplementing the functions/acts specified in the flowchart and/or blockdiagram block or blocks. These computer readable program instructionsmay also be stored in a computer readable storage medium that can directa computer, a programmable data processing apparatus, and/or otherdevices to function in a particular manner, such that the computerreadable storage medium having instructions stored therein comprises anarticle of manufacture including instructions which implement aspects ofthe function/act specified in the flowchart and/or block diagram blockor blocks.

The computer readable program instructions may also be loaded onto acomputer, other programmable data processing apparatus, or other deviceto cause a series of operational steps to be performed on the computer,other programmable apparatus or other device to produce a computerimplemented process, such that the instructions which execute on thecomputer, other programmable apparatus, or other device implement thefunctions/acts specified in the flowchart and/or block diagram block orblocks.

The flowchart and block diagrams in the figures illustrate thearchitecture, functionality, and operation of possible implementationsof systems, methods, and computer program products according to variousembodiments of the present invention. In this regard, each block in theflowchart or block diagrams may represent a module, segment, or portionof instructions, which comprises one or more executable instructions forimplementing the specified logical function(s). In some alternativeimplementations, the functions noted in the block may occur out of theorder noted in the figures. For example, two blocks shown in successionmay, in fact, be executed substantially concurrently, or the blocks maysometimes be executed in the reverse order, depending upon thefunctionality involved. It will also be noted that each block of theblock diagrams and/or flowchart illustration, and combinations of blocksin the block diagrams and/or flowchart illustration, can be implementedby special purpose hardware-based systems that perform the specifiedfunctions or acts or carry out combinations of special purpose hardwareand computer instruction.

FIG. 7 illustrates a block diagram that shows certain elements that maybe included in the host bus adapter 104, the storage controller 102, theembedded port 106, or other computational devices in accordance withcertain embodiments. The system 700 may include a circuitry 702 that mayin certain embodiments include at least a processor 704. The system 700may also include a memory 706 (e.g., a volatile memory device), andstorage 708. The storage 708 may include a non-volatile memory device(e.g., EEPROM, ROM, PROM, flash, firmware, programmable logic, etc.),magnetic disk drive, optical disk drive, tape drive, etc. The storage708 may comprise an internal storage device, an attached storage deviceand/or a network accessible storage device. The system 700 may include aprogram logic 710 including code 712 that may be loaded into the memory706 and executed by the processor 704 or circuitry 702. In certainembodiments, the program logic 710 including code 712 may be stored inthe storage 708. In certain other embodiments, the program logic 710 maybe implemented in the circuitry 702. Therefore, while FIG. 7 shows theprogram logic 710 separately from the other elements, the program logic710 may be implemented in the memory 706 and/or the circuitry 702.

Certain embodiments may be directed to a method for deploying computinginstruction by a person or automated processing integratingcomputer-readable code into a computing system, wherein the code incombination with the computing system is enabled to perform theoperations of the described embodiments.

The terms “an embodiment”, “embodiment”, “embodiments”, “theembodiment”, “the embodiments”, “one or more embodiments”, “someembodiments”, and “one embodiment” mean “one or more (but not all)embodiments of the present invention(s)” unless expressly specifiedotherwise.

The terms “including”, “comprising”, “having” and variations thereofmean “including but not limited to”, unless expressly specifiedotherwise.

The enumerated listing of items does not imply that any or all of theitems are mutually exclusive, unless expressly specified otherwise.

The terms “a”, “an” and “the” mean “one or more”, unless expresslyspecified otherwise.

Devices that are in communication with each other need not be incontinuous communication with each other, unless expressly specifiedotherwise. In addition, devices that are in communication with eachother may communicate directly or indirectly through one or moreintermediaries.

A description of an embodiment with several components in communicationwith each other does not imply that all such components are required. Onthe contrary a variety of optional components are described toillustrate the wide variety of possible embodiments of the presentinvention.

Further, although process steps, method steps, algorithms or the likemay be described in a sequential order, such processes, methods andalgorithms may be configured to work in alternate orders. In otherwords, any sequence or order of steps that may be described does notnecessarily indicate a requirement that the steps be performed in thatorder. The steps of processes described herein may be performed in anyorder practical. Further, some steps may be performed simultaneously.

When a single device or article is described herein, it will be readilyapparent that more than one device/article (whether or not theycooperate) may be used in place of a single device/article. Similarly,where more than one device or article is described herein (whether ornot they cooperate), it will be readily apparent that a singledevice/article may be used in place of the more than one device orarticle or a different number of devices/articles may be used instead ofthe shown number of devices or programs. The functionality and/or thefeatures of a device may be alternatively embodied by one or more otherdevices which are not explicitly described as having suchfunctionality/features. Thus, other embodiments of the present inventionneed not include the device itself.

At least certain operations that may have been illustrated in thefigures show certain events occurring in a certain order. In alternativeembodiments, certain operations may be performed in a different order,modified or removed. Moreover, steps may be added to the above describedlogic and still conform to the described embodiments. Further,operations described herein may occur sequentially or certain operationsmay be processed in parallel. Yet further, operations may be performedby a single processing unit or by distributed processing units.

The foregoing description of various embodiments of the invention hasbeen presented for the purposes of illustration and description. It isnot intended to be exhaustive or to limit the invention to the preciseform disclosed. Many modifications and variations are possible in lightof the above teaching. It is intended that the scope of the invention belimited not by this detailed description, but rather by the claimsappended hereto. The above specification, examples and data provide acomplete description of the manufacture and use of the composition ofthe invention. Since many embodiments of the invention can be madewithout departing from the spirit and scope of the invention, theinvention resides in the claims hereinafter appended.

What is claimed is:
 1. A method, comprising: storing informationmaintained in a port control block of an embedded port of a host busadapter in a host bus adapter memory, wherein the informationcorresponds to login attributes and state data of remote ports; inresponse to storing the information in the host bus adapter memory,updating code in the embedded port; and in response to the updating ofthe code in the embedded port, restoring the stored information from thehost bus adapter memory to the port control block of the embedded port,wherein the embedded port performs: receiving, a first message from adriver of the host bus adapter to store the information maintained inthe port control block of the embedded port in the host bus adaptermemory; receiving a second message from the driver of the host busadapter to update the code in the embedded port; and receiving a thirdmessage from the driver of the host bus adapter to restore the storedinformation from the host bus adapter memory to the port control blockof the embedded port.
 2. The method of claim 1, wherein during thestoring of the information from the port control block to the host busadapter memory, the updating of the code in the embedded port, and therestoring of the stored information to the port control block, theremote ports remain logged in to the embedded port.
 3. The method ofclaim 1, wherein the embedded port is a Fibre Channel interface chipthat includes port firmware that supports lower level Fibre Channelprotocols to communicate over a Fibre Channel fabric, and wherein thedriver of the host bus adapter supports upper level Fibre Channelprotocols.
 4. The method of claim 1, wherein input/output operations arequiesced at least during the updating of the code in the embedded port.5. The method of claim 1, wherein updating of the code updates afirmware of the embedded port.
 6. A method, comprising: storinginformation maintained in a port control block of an embedded port of ahost bus adapter in a host bus adapter memory, wherein the informationcorresponds to login attributes and state data of remote ports; inresponse to storing the information in the host bus adapter memory,updating code in the embedded port; and in response to the updating ofthe code in the embedded port, restoring the stored information from thehost bus adapter memory to the port control block of the embedded port,wherein a driver of the host bus adapter performs: sending a firstmessage to the embedded port to store the information maintained in theport control block of the embedded port in a host bus adapter memory;sending a second message to the embedded port to update the code in theembedded port; and sending a third message to the embedded port torestore the stored information from the host bus adapter memory to theport control block of the embedded port.
 7. A system, comprising: amemory; and a processor coupled to the memory, wherein the processorperforms operations, the operations comprising: storing informationmaintained in a port control block of an embedded port of a host busadapter in a host bus adapter memory, wherein the informationcorresponds to login attributes and state data of remote ports; inresponse to storing the information in the host bus adapter memory,updating code in the embedded port; and in response to the updating ofthe code in the embedded port, restoring the stored information from thehost bus adapter memory to the port control block of the embedded port,wherein the embedded port performs: receiving, a first message from adriver of the host bus adapter to store the information maintained inthe port control block of the embedded port in the host bus adaptermemory; receiving a second message from the driver of the host busadapter to update the code in the embedded port; and receiving a thirdmessage from the driver of the host bus adapter to restore the storedinformation from the host bus adapter memory to the port control blockof the embedded port.
 8. The system of claim 7, wherein during thestoring of the information from the port control block to the host busadapter memory, the updating of the code in the embedded port, and therestoring of the stored information to the port control block, theremote ports remain logged in to the embedded port.
 9. The system ofclaim 7, wherein the embedded port is a Fibre Channel interface chipthat includes port firmware that supports lower level Fibre Channelprotocols to communicate over a Fibre Channel fabric, and wherein thedriver of the host bus adapter supports upper level Fibre Channelprotocols.
 10. The system of claim 7, wherein input/output operationsare quiesced at least during the updating of the code in the embeddedport.
 11. The system of claim 7, wherein updating of the code updates afirmware of the embedded port.
 12. The system of claim 7, wherein thesystem is comprised of the embedded port.
 13. The system of claim 7,wherein the system comprises a storage controller that includes the hostbus adapter.
 14. A system, comprising: a memory; and a processor coupledto the memory, wherein the processor performs operations, the operationscomprising: storing information maintained in a port control block of anembedded port of a host bus adapter in a host bus adapter memory,wherein the information corresponds to login attributes and state dataof remote ports; in response to storing the information in the host busadapter memory, updating code in the embedded port; and in response tothe updating of the code in the embedded port, restoring the storedinformation from the host bus adapter memory to the port control blockof the embedded port, wherein a driver of the host bus adapter performs:sending a first message to the embedded port to store the informationmaintained in the port control block of the embedded port in a host busadapter memory; sending a second message to the embedded port to updatethe code in the embedded port; and sending a third message to theembedded port to restore the stored information from the host busadapter memory to the port control block of the embedded port.
 15. Acomputer program product, the computer program product comprising acomputer readable storage medium having computer readable program codeembodied therewith, the computer readable program code configured toperform operations, the operations comprising: storing informationmaintained in a port control block of an embedded port of a host busadapter in a host bus adapter memory, wherein the informationcorresponds to login attributes and state data of remote ports; inresponse to storing the information in the host bus adapter memory,updating code in the embedded port; and in response to the updating ofthe code in the embedded port, restoring the stored information from thehost bus adapter memory to the port control block of the embedded port,wherein the embedded port performs: receiving, a first message from adriver of the host bus adapter to store the information maintained inthe port control block of the embedded port in the host bus adaptermemory; receiving a second message from the driver of the host busadapter to update the code in the embedded port; and receiving a thirdmessage from the driver of the host bus adapter to restore the storedinformation from the host bus adapter memory to the port control blockof the embedded port.
 16. The computer program product of claim 15,wherein during the storing of the information from the port controlblock to the host bus adapter memory, the updating of the code in theembedded port, and the restoring of the stored information to the portcontrol block, the remote ports remain logged in to the embedded port.17. The computer program product of claim 15, wherein the embedded portis a Fibre Channel interface chip that includes port firmware thatsupports lower level Fibre Channel protocols to communicate over a FibreChannel fabric, wherein the driver of the host bus adapter supportsupper level Fibre Channel protocols, wherein input/output operations arequiesced at least during the updating of the code in the embedded port,and wherein updating of the code updates a firmware of the embeddedport.
 18. A computer program product, the computer program productcomprising a computer readable storage medium having computer readableprogram code embodied therewith, the computer readable program codeconfigured to perform operations, the operations comprising: storinginformation maintained in a port control block of an embedded port of ahost bus adapter in a host bus adapter memory, wherein the informationcorresponds to login attributes and state data of remote ports; inresponse to storing the information in the host bus adapter memory,updating code in the embedded port; and in response to the updating ofthe code in the embedded port, restoring the stored information from thehost bus adapter memory to the port control block of the embedded port,wherein the host bus adapter performs: sending a first message to theembedded port to store the information maintained in the port controlblock of the embedded port in a host bus adapter memory; sending asecond message to the embedded port to update the code in the embeddedport; and sending a third message to the embedded port to restore thestored information from the host bus adapter memory to the port controlblock of the embedded port.
 19. The computer program product of claim18, wherein input/output operations are quiesced at least during theupdating of the code in the embedded port.
 20. The computer programproduct of claim 18, wherein updating of the code updates a firmware ofthe embedded port.